﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CategoryNavigation.ascx.cs" Inherits="CS424_9pts.Modules.CategoryNavigation" %>
<div class="block block-category-navigation">
    <div class="title">
        Brand Name
    </div>
    <div class="clear"></div>
    <div class="listbox">
        <ul>
         <asp:PlaceHolder runat="server" ID="phCategories" EnableViewState="false">
            <asp:DataList ID="DataList1" runat="server" DataKeyField="BrandID" 
                DataSourceID="BrandName">
                <ItemTemplate>
          <a href="/category.aspx?BrandID=<%#Eval("BrandID") %>" > <asp:Label ID="BrandNameLabel" runat="server" Text='<%# Eval("BrandName") %>' /></a>
                </ItemTemplate>
            </asp:DataList>
            </asp:PlaceHolder>
        </ul>
    </div>
</div>
<asp:SqlDataSource ID="BrandName" runat="server" 
    ConnectionString="<%$ ConnectionStrings:CarManagementConnectionString %>" 
    SelectCommand="SELECT [BrandID], [BrandName], [Description], [ImagesName], [Status] FROM [Brand]">
</asp:SqlDataSource>

